# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=glamor-egl
pkgver=0.6.0
pkgrel=4
pkgdesc="X.org glamor library"
url="https://www.freedesktop.org/wiki/Software/Glamor"
arch="all"
license="MIT"
depends_dev="mesa-dev"
makedepends="$depends_dev xorg-server-dev"
subpackages="$pkgname-dev"
source="https://www.x.org/releases/individual/driver/glamor-egl-$pkgver.tar.bz2"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-static
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="aa3a88e85ae069e487c88a1839c21b0404c5a2a343a63f2c1d71ffb8d86288eb42dfcb30c8cce4c417b361417e9fae7c1cdabadc07ad40bb97c995c410dc0c1b  glamor-egl-0.6.0.tar.bz2"
